package com.cloud.pole.param.service.impl;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cloud.pole.common.constant.CommonConstants;
import com.cloud.pole.common.exception.BaseException;
import com.cloud.pole.common.util.UUIDUtils;
import com.cloud.pole.param.biz.PickListBiz;
import com.cloud.pole.param.model.entity.Picklist;
import com.cloud.pole.param.service.ParamPickListService;


import lombok.extern.slf4j.Slf4j;

/*
*2019年1月30日
*cloud-user
*author:frank-chen
*/
@Service
@Slf4j
public class ParamPickListServiceImpl implements ParamPickListService {
	@Autowired
    private PickListBiz pickListBiz;

	@Override
	public List<Picklist> getPickList(String picklistCode) throws Exception {
		// TODO Auto-generated method stub
		return pickListBiz.getPicklistByCode(picklistCode);
	}

	@Override
	public List<Picklist> paramPicklists() throws Exception {
	
		return pickListBiz.paramPicklists();
	}

	@Override
	public Picklist selectByCodeValue(String picklistode, String picklistValue) throws Exception {
		
		return pickListBiz.paramPickBy(picklistode, picklistValue);
	}
}
